package com.example.last.dao;

import com.example.last.entity.Params;
import com.example.last.entity.Reservation;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface ReservationDao {
    List<Reservation> findBySearch(@Param("params") Params params);

    void add(Reservation reservation);

    void update(Reservation reservation);

    void delete(Integer id);
}
